package cn.hdc.os.dao;

import cn.hdc.os.entity.Department;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository("departmentDao")
//部门管理持久层
public interface DepartmentDao {
    //新增部门
    void insert(Department department);

    //修改部门
    void update(Department department);

    //删除部门
    void delete(String sn);

    //根据sn查找部门
    Department select(String sn);

    //查找所有部门
    List<Department> selectAll();
}
